/*
     File: Constants.h
 Abstract: Constant screen placement values for controls.
  Version: 1.0
 */

#define kScreenWidth				320
#define kScreenHeight				480

#define kMinDistanceToPoint 		40
#define Infinity					99999999


// keys to our dictionary holding info on each page
#define kViewControllerKey		@"viewController"
#define kTitleKey				@"title"
#define kDetailKey				@"detail text"

#define kStatusCellActivityIndicatorTag			1

// name of the file, where we store user changes
#define kFilename				@"settings.plist"

#define kDBUnderground			@"MosMetro.sqlite"

// key to get info about Style in the Settings-bundle (Settings-application)
#define kFogSetting				@"ShowFog"
#define kAlphaUPanelUp			@"AlphaUPan"
#define kImageType				@"image"
#define kStringType				@"names"
#define kQuerShow				@"showQuer"

#define RAILROADS				0
#define BUSES					1
#define METRO					2

#define kTabBarView				99


/// for drawing
#define kOffsetX				7
#define kOffsetY				11

/// for Drawing in Underground:
#define kOffsetXU				0
#define kOffsetYU				0

/// for maximum points in the map array of centers;
#define MaximumPointsForNode	5

#define kTableViewRowHeight		70

#define kStationsToolbarCy		406
#define kTimeAnimation			0.01
#define kScrollViewHeight		398
#define kShiftCanvasX			1
#define kShiftCanvasY			1

#define kTapWarningCy			25


// underground:
#define kUndergroundToolbarCy	-25
#define kUndergroundToolbarCyBig 0
#define kUndergroundToolbarCyS -44

// cyclon structure for getting nodes;
#define kKnot 		@"knot"
#define kWeight 	@"weight"

#define kId				@"id"
#define kLinkId			@"link_id"
#define kX				@"xCoord"
#define kY				@"yCoord"

#define kTabBarHeight			50

#define kCenterRadialX			483
#define kCenterRadialY			485
//#define kRadius					200

#define kImagesForULinesCount	14

#define kCustomButtonHeight		30

// for animation constants:
#define kShowJustToolbar		0
#define kHideToolbarAndGoToTimeTable		0
#define kHideToolbarOnly		1
